export class Result {
    /**
     * 统一返回
     * @param {Number} status
     * @param {Object} data
     * @param {String}message
     */
    constructor(status, data, message) {
        this.status = status;
        this.data = data;
        this.message = message;
    }
}

export class LoginForm {
    constructor() {
        this.phone = "18173707896";
        this.password = "yujie1230";
    }
}

export class MenuEnum {
    /**
     * 菜单枚举
     * @param {String}label
     * @param {String}path
     * @param {String}icon
     * @param {MenuEnum[]|undefined}child
     */
    constructor(label, path, icon, child = undefined) {
        this.label = label;
        this.path = path;
        this.icon = icon;
        this.child = child;
    }
}

export class Pageable {
    /**
     * 分页
     * @param {*}page
     * @param {*}size
     * @param {String}sort
     */
    constructor(page = 1, size = 20, sort = "") {
        this.page = parseInt(page || 1);
        this.size = parseInt(size);
        this.sort = sort;
    }
}

export class Article {
    constructor(id, images, title, content, series,createDate) {
        this.id = id;
        this.images = images;
        this.title = title;
        this.content = content;
        this.series = series;
        this.createDate = createDate
    }
}